package com.security.common;

/**
 * 作者：lin
 * 功能：
 * 时间：2023/5/5 10:42
 */
public enum RespCode {
    SUCCESS(200, "访问成功"),
    FAIL(500, "访问失败"),
    NO_AUTHENTICATION(403, "认证失败"),
    NO_AUTHORITY(401, "未授权"),
    ;
    int code;
    String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
